package com.example.data_show.service;

import com.example.data_show.dao.Crop_yieldDao;
import com.example.data_show.entity.Crop_yield;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Crop_yieldService {
    @Resource
    private Crop_yieldDao crop_yieldDao;

    public List<Crop_yield> all() {
        return crop_yieldDao.findAll();
    }
}
